﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProductManagement;
using Digitalmes.Model;
using Digitalmes.Model.WmsManagement;

namespace Digitalmes.ViewModel.ProductManagement.ProductBomVMs
{
    public partial class ProductBomBatchVM : BaseBatchVM<ProductBom, ProductBom_BatchEdit>
    {
        public ProductBomBatchVM()
        {
            ListVM = new ProductBomListVM();
            LinkedVM = new ProductBom_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProductBom_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProductBom._Product")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ProductBom._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._ProductBom._Material")]
        public long? MaterialId { get; set; }
        [Display(Name = "_Model._ProductBom._MaterialName")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._ProductBom._Qty")]
        public decimal? Qty { get; set; }
        [Display(Name = "_Model._ProductBom._Unit")]
        public string Unit { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}